package com.mijie.homi.admin.service.channel;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mijie.homi.admin.dao.channel.ChannelDao;
import com.mijie.homi.admin.domain.commom.Channel;

@Service
public class ChannelService {

	@Autowired
	private ChannelDao dao;
	
	public List<Channel> listChannel(){
		return dao.listChannel();
	}
	
	public int createChannel(String name){
		return dao.createChannel(name);
	}
	
	public int updateChannel(Channel channel){
		return dao.updateChannel(channel);
	}
	
	public Channel getChannel(int id){
		return dao.getChannel(id);
	}
}
